package edu.nf.ch14.service;

import edu.nf.ch14.util.ApplicationContextHolder;

/**
 * @author wangl
 * @date 2025/5/8
 */

public class TestService {

    /**
     * 获取IOC容器的Bean对象
     */
    public void test() {
        //通过holder获取Bean
        UserService service = ApplicationContextHolder.getBean(UserService.class);
        service.add();
    }


}